package com.xbongbong.pro.message.feign;

import com.xbongbong.paas.pojo.vo.IsActiveAIComboVO;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

/**
 * @Description: AI相关Feign调用接口
 * @Author: jiping.yang
 * @Date: 2022-09-19  14:35
 * @version: v1.0
 **/
@FeignClient(name = "ai-center-web",contextId = "aiFeignClient")
public interface AIFeignClient {
    @RequestMapping(value = "/pro/v1/ai/combo/company/getComboExpired", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public XbbResponse<IsActiveAIComboVO> isActiveCombo(@RequestBody @Valid BaseDTO baseDTO, @RequestParam("lang") String lang) ;
}
